/*
 * DistribucionSource.java
 *
 * Created on 13 de junio de 2007, 11:04 AM
 *
 * To change this template, choose Tools | Options and locate the template under
 * the Source Creation and Management node. Right-click the template and choose
 * Open. You can then make changes to the template in the Source Editor.
 */

package com.src.computec.radar.distribucion.source;

import java.util.ResourceBundle;

/**
 *
 * @author aocampo
 */
public class DistribucionSource {
    
    protected static DistribucionSource distribucionSource;
    private static ResourceBundle distribucionSetup;
    private static ResourceBundle distribucionMessagesSetup;
    
    /**
     * Creates a new instance of DistribucionSource 
     */
    protected DistribucionSource() {
        distribucionSetup = ResourceBundle.getBundle("DistribucionSetup");
        distribucionMessagesSetup = ResourceBundle.getBundle("DistribucionMessagesSetup");
    }
    
    public static DistribucionSource getInstance() {
        if (distribucionSource == null) {
            distribucionSource = new DistribucionSource();
        }
        return distribucionSource;
    }
    
    public String getDistribucionSetupKey(String key) {
        return distribucionSetup.getString(key);
    }
    
    public String getDistribucionMessagesSetupKey(String key) {
        return distribucionMessagesSetup.getString(key);
    }
}